package com.jk.common.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * Description: PageVO
 * Author: 豆子高
 * Date: 2025/2/27 11:29
 */
@Schema(name = "PageInfo", description = "分页信息")
@Data
public class PageInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 当前页码
     */
    @Schema(description = "当前页码")
    long currentPage;

    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    long size;

    /**
     * 总条数
     */
    @Schema(description = "总条数")
    long total;

    /**
     * 总页数
     */
    @Schema(description = "总页数")
    long totalPage;

    public PageInfo() {
    }
    public PageInfo(long currentPage, long size, long total, long totalPage) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
        this.totalPage = totalPage;
    }

}
